package com.wonders.auth.core.factory;

import com.wonders.auth.core.aware.SpringBeanHolder;
import com.wonders.auth.module.dao.UserMapper;
import com.wonders.auth.module.po.User;
import org.springframework.stereotype.Service;

@Service
public class ConstantFactoryImpl implements ConstantFactory {

    private UserMapper userMapper = SpringBeanHolder.getBean(UserMapper.class);


    @Override
    public User getUserById(Integer id) {
        return userMapper.selectById(id);
    }

}
